-- clearing_money2
-- created by wangy
-- 额外增加结算金币

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;

        if type(prop[2]) == "number" then
            desc = string.gsub(desc, "{0}", ItemM.query(prop[2], "name"));
        elseif prop[2] == "money" then
            desc = string.gsub(desc, "{0}", getLocStr("money"));
        elseif prop[2] == "gem" then
            desc = string.gsub(desc, "{0}", getLocStr("gem"));
        elseif prop[2] == "exp" then
            desc = string.gsub(desc, "{0}", getLocStr("mop_up_exp"));
        end

        local value = prop[3];
        desc = string.gsub(desc, "{1}", value);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end
};